package dao

import "vtrip/internal/model"

func (d *Dao) FindAllTourismProject() ([]*model.TourismProjectPart, error) {
	tourismProject := &model.TourismProject{}
	return tourismProject.All(d.engine)
}

func (d *Dao) AddTourismProject(name string) error {
	project := &model.TourismProject{
		Name: name,
	}
	return project.Create(d.engine)
}
